<?php
$rows = $detail_references->row();

$image_path = './assets/actuimg/thumbs/' . $rows->images;
if (file_exists($image_path)) {
    $image_path = base_url() . 'assets/actuimg/thumbs/' . $rows->images;
} else {
    $image_path = base_url() . 'assets/noimage.gif';
}

$datestring = "%Y/%m/%d - %h:%i %a";
$time = $rows->date;
$mdate = mdate($datestring, $time);
?>

<table  align="center">
    <tr>
        <td width="10%" valign="top">
            <img src="<?php echo $image_path; ?>" width="150px" alt=""/>
        </td>
        <td>
            <h2> <?php echo $rows->title; ?></h2>
            <p> <?php echo $rows->intro; ?></p>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="color: orangered">
            Posted at :<span style="color: blue"><?php echo $mdate; ?></span>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="color: black">
                <?php echo $rows->content; ?>
        </td>
    </tr>
</table>
